home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Excel / Sheet.jar / sheet / SheetShow$4.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-09-03  |  2.2 KB  |  50 lines

  1. package sheet;
  2.  
  3. import javax.microedition.lcdui.Alert;
  4. import javax.microedition.lcdui.AlertType;
  5. import javax.microedition.lcdui.Command;
  6. import javax.microedition.lcdui.Displayable;
  7. import javax.microedition.lcdui.Image;
  8. import javax.microedition.lcdui.List;
  9. import javax.microedition.rms.RecordStore;
  10.  
  11. class SheetShow$4 implements Runnable {
  12.    private final Displayable val$back;
  13.    private final SheetShow this$0;
  14.  
  15.    SheetShow$4(SheetShow var1, Displayable var2) {
  16.       this.this$0 = var1;
  17.       this.val$back = var2;
  18.    }
  19.  
  20.    public void run() {
  21.       try {
  22.          String[] var1 = RecordStore.listRecordStores();
  23.          Alert var6 = new Alert("Info", "No files to open", (Image)null, AlertType.ERROR);
  24.          if (var1 != null) {
  25.             List var3 = new List("Open a sheet", 3, var1, (Image[])null);
  26.             Command var4 = new Command("Delete", 1, 1);
  27.             ((Displayable)var3).setCommandListener(new SheetShow.5(this, var4, var6));
  28.             ((Displayable)var3).addCommand(SheetShow.access$100());
  29.             ((Displayable)var3).addCommand(SheetShow.access$1100());
  30.             ((Displayable)var3).addCommand(var4);
  31.             SheetShow.access$000().setCurrent(var3);
  32.          } else {
  33.             SheetShow.access$000().setCurrent(var6, this.val$back);
  34.          }
  35.       } catch (Exception var5) {
  36.          Alert var2 = new Alert("File error", ((Throwable)var5).getMessage(), (Image)null, AlertType.ERROR);
  37.          SheetShow.access$000().setCurrent(var2, this.val$back);
  38.       }
  39.  
  40.    }
  41.  
  42.    static SheetShow access$700(SheetShow$4 var0) {
  43.       return var0.this$0;
  44.    }
  45.  
  46.    static Displayable access$1000(SheetShow$4 var0) {
  47.       return var0.val$back;
  48.    }
  49. }
  50.